﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using SMS.WebUI.App_LocalResources;

namespace SMS.WebUI.Models
{
    public class OngModel

    {
        public int OngId { get; set; }

        [Display(Name = "OngCif", ResourceType = typeof(ValidationMessages))]
        [Required(ErrorMessageResourceName = "OngCifIsRequired", ErrorMessageResourceType = typeof(ValidationMessages))]
        [StringLength(10, ErrorMessageResourceType = typeof(ValidationMessages), ErrorMessageResourceName = "OngCifStringLength")]
        public string Cif { get; set; }

        [Display(Name = "OngNombre", ResourceType = typeof(ValidationMessages))]
        [Required(ErrorMessageResourceName = "OngNombreIsRequired", ErrorMessageResourceType = typeof(ValidationMessages))]
        [StringLength(100, ErrorMessageResourceType = typeof(ValidationMessages), ErrorMessageResourceName = "OngNombreStringLength")]
        public string NombreM { get; set; }

        [Display(Name = "OngWeb", ResourceType = typeof(ValidationMessages))]
        [StringLength(100, ErrorMessageResourceType = typeof(ValidationMessages), ErrorMessageResourceName = "OngWebStringLength")]
        public string Web { get; set; }

        [Display(Name = "OngObjetivo", ResourceType = typeof(ValidationMessages))]
        [StringLength(1000, ErrorMessageResourceType = typeof(ValidationMessages), ErrorMessageResourceName = "OngObjetivoStringLength")]
        public string Objetivo { get; set; }

        public ICollection<OngDelegacionModel> OngDelegacion { get; set; }
        
    }
}